package com.woniu.userservice.controller;

import com.woniu.userservice.entity.Auctions;
import com.woniu.userservice.service.AuctionsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("auctions")
public class AuctionsController {
    @Resource
    private AuctionsService auctionsService;

    @GetMapping("selectOne")
    public Auctions selectOne(Integer id) {
        return auctionsService.queryById(id);
    }

}